package com.chen.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/*
* 考勤实体类
* */
@Entity
@Table(name = "s_attendance")
public class Attendance implements Serializable {
    private Integer id;
    private Integer courseId;
    private Integer studentId;
    private String type;
    private String date;

    public Attendance() {
    }

    public Attendance(Integer id, Integer courseId, Integer studentId, String type, String date) {
        this.id = id;
        this.courseId = courseId;
        this.studentId = studentId;
        this.type = type;
        this.date = date;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", studentId=" + studentId +
                ", type='" + type + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}
